package com.scvtc.domain.entity.research;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 科研教材信息(ResearchCourseBook)类
 *
 * @author yiFei
 * @since 2022-06-02 16:17:08
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("科研教材信息")
@TableName("research_course_book")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResearchCourseBook implements Serializable {

    private static final long serialVersionUID = 175391891297833128L;

    @TableId
    private Integer id;

    /**
     * 教师外键
     */
    @ApiModelProperty(value = "教师外键")
    private Integer teacherId;

    /**
     * 教材年度
     */
    @ApiModelProperty(value = "教材年度")
    private Integer researchCourseBookYear;

    /**
     * 教材部门
     */
    @ApiModelProperty(value = "教材部门")
    private String researchCourseBookDepartment;

    /**
     * 教材作者
     */
    @ApiModelProperty(value = "教材作者")
    private String researchCourseBookAuthor;

    /**
     * 教材名称
     */
    @ApiModelProperty(value = "教材名称")
    private String researchCourseBookName;

    /**
     * 教材所属学科
     */
    @ApiModelProperty(value = "教材所属学科")
    private String researchCourseBookSubject;

    /**
     * 教材出版社
     */
    @ApiModelProperty(value = "教材出版社")
    private String researchCourseBookPublisher;

    /**
     * 教材ISBN
     */
    @ApiModelProperty(value = "教材ISBN")
    private String researchCourseBookIsbn;

    /**
     * 教材编著形式
     */
    @ApiModelProperty(value = "教材编著形式")
    private String researchCourseBookSituation;

    /**
     * 教材类别
     */
    @ApiModelProperty(value = "教材类别")
    private String researchCourseBookCategory;

    /**
     * 教材出版时间
     */
    @ApiModelProperty(value = "教材出版时间")
    private String researchCourseBookPublishDate;

    /**
     * 教材编著人员
     */
    @ApiModelProperty(value = "教材编著人员")
    private String researchCourseBookAuthorRank;

    /**
     * 教材总字数
     */
    @ApiModelProperty(value = "教材总字数")
    private Long researchCourseBookTotalWords;

    /**
     * 教材本院参半字数（万字）
     */
    @ApiModelProperty(value = "教材本院参半字数（万字）")
    private Long researchCourseBookOurWords;

    /**
     * 教材（校内）分工撰写字数（万字）
     */
    @ApiModelProperty(value = "教材（校内）分工撰写字数（万字）")
    private String researchCourseBookDivisionWords;

    /**
     * 教材科研分
     */
    @ApiModelProperty(value = "教材科研分")
    private String researchCourseBookScore;

    /**
     * 教材核查分
     */
    @ApiModelProperty(value = "教材核查分")
    private String researchCourseBookCheckScore;

    /**
     * 教材备注
     */
    @ApiModelProperty(value = "教材备注")
    private String researchCourseBookDescription;

    /**
     * 数据状态（0正常 1停用）
     */
    @ApiModelProperty(value = "数据状态（0正常 1停用）")
    private String status;

    /**
     * 创建人的用户id
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人 ID")
    private Long createBy;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人 ID")
    private Long updateBy;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    @ApiModelProperty(value = "删除标志（0代表未删除，1代表已删除）")
    private String delFlag;

    /**
     * 教师姓名
     */
    @ApiModelProperty(value = "教师姓名", hidden = true)
    @TableField(exist = false)
    private String teacherName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", hidden = true)
    @TableField(exist = false)
    private String teacherGender;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门", hidden = true)
    @TableField(exist = false)
    private String teacherDepartment;

    /**
     * 职称
     */
    @ApiModelProperty(value = "职称", hidden = true)
    @TableField(exist = false)
    private String teacherRank;

    /**
     * 学位
     */
    @ApiModelProperty(value = "学位", hidden = true)
    @TableField(exist = false)
    private String teacherDegree;

    /**
     * 教工号
     */
    @ApiModelProperty(value = "教工号", hidden = true)
    @TableField(exist = false)
    private String teacherCollegeId;

}
